/**
 * Created by tomi on 1/29/15.
 */
var mongoose = require('mongoose');

var AppointmentSchema = mongoose.Schema({
    //uuid - date - address - owner - partner - record
    sponsor: String,
    date: Date,
    location: String,
    attendees: [{type: mongoose.Schema.Types.ObjectId, ref: 'User'}],
    record: String,
    type: String
});

var Appointment = mongoose.model('Appointment', AppointmentSchema);

module.exports = Appointment;